home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 May / EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso / softwareupdate / system / amigados / amigadoslibrary / deletefile.c < prev    next >
C/C++ Source or Header  |  1996-10-10  |  601b  |  31 lines

  1. /* DeleteFile.c   V1.0   93-03-15                        */
  2. /* ROM library: "dos.library/DeleteFile", (All versions) */
  3. /* Copyright 1993, Anders Bjerin, Amiga C Club           */
  4.  
  5. #include <dos/dos.h>
  6.  
  7. #include <clib/dos_protos.h>
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10.  
  11. UBYTE *version = "$VER: DeleteFile 1.0";
  12.  
  13. int main( int argc, char *argv[] );
  14. int main( int argc, char *argv[] )
  15. {
  16.   BOOL ok;
  17.  
  18.  
  19.   /* Delete the file: */
  20.   ok = DeleteFile( "RAM:HighScore.dat" );
  21.  
  22.   /* OK? */
  23.   if( ok )
  24.     printf( "File deleted!\n" );
  25.   else
  26.     printf( "Error! Could not delete the file!\n" );
  27.  
  28.   exit( 0 );
  29. }
  30.  
  31.